import Vue from 'vue'
import VueRouter from 'vue-router'

//项目导航栏路由
import firstPage from '@/components/firstPage.vue'
import itemShow from '@/components/itemShow.vue'
import simulation from '@/components/simulation.vue'
import stepAnalysis from '@/components/stepAnalysis.vue'
import videoOperation from '@/components/videoOperation.vue'
import teachers from '@/components/teachers.vue'
import aboutUs from '@/components/aboutUs.vue'

// 实验项目简介子路由
import purpose from '@/components/itemShow/purpose.vue'
import principle from '@/components/itemShow/principle.vue'
import equipment from '@/components/itemShow/equipment.vue'
import materials from '@/components/itemShow/materials.vue'
import method from '@/components/itemShow/method.vue'
import step from '@/components/itemShow/step.vue'
import conclusion from '@/components/itemShow/conclusion.vue'
import assessment from '@/components/itemShow/assessment.vue'
import student from '@/components/itemShow/student.vue'
import application from '@/components/itemShow/application.vue'

//教师详情
import principal from '@/components/itemTeam/principal.vue'

// 实验步骤解析子路由
import first from '@/components/stepAnalysis/firstStep.vue'
import second from '@/components/stepAnalysis/secondStep.vue'
import third from '@/components/stepAnalysis/thirdStep.vue'
import four from '@/components/stepAnalysis/fourStep.vue'
import five from '@/components/stepAnalysis/fiveStep.vue'
import six from '@/components/stepAnalysis/sixStep.vue'
import seven from '@/components/stepAnalysis/sevenStep.vue'
import eight from '@/components/stepAnalysis/eightStep.vue'
import nine from '@/components/stepAnalysis/nineStep.vue'
import ten from '@/components/stepAnalysis/tenStep.vue'
import eleven from '@/components/stepAnalysis/elevenStep.vue'
import twelve from '@/components/stepAnalysis/twelveStep.vue'
import thirteen from '@/components/stepAnalysis/thirteenStep.vue'
import fourteen from '@/components/stepAnalysis/fourteenStep.vue'

//虚拟仿真实验步骤
import firstperson from '@/components/simulation/firstperson'
import gtp from '@/components/simulation/gtp'
import layercut from '@/components/simulation/layercut'
import sec from '@/components/simulation/section'
import zk from '@/components/simulation/zk'



//首页底部详情
import technology from '@/components/firstPage/technology'
import programFeatures from '@/components/firstPage/programFeatures'
import servicePlan from '@/components/firstPage/servicePlan'
import RelatedInformation from '@/components/firstPage/RelatedInformation'


Vue.use(VueRouter)
let router = new VueRouter({
    routes: [
        { path: '/', redirect: '/firstPage' },
        { path: '/firstPage', component: firstPage, name: 'firstPage' },
        { path: '/firstPage/technology', component: technology, name: 'technology' },
        { path: '/firstPage/programFeatures', component: programFeatures },
        { path: '/firstPage/servicePlan', component: servicePlan },
        { path: '/firstPage/RelatedInformation', component: RelatedInformation },
        {
            path: '/itemShow', component: itemShow,
            children: [
                { path: '/itemShow', redirect: '/itemShow/purpose' },
                { path: '/itemShow/purpose', component: purpose },
                { path: '/itemShow/principle', component: principle },
                { path: '/itemShow/equipment', component: equipment },
                { path: '/itemShow/materials', component: materials },
                { path: '/itemShow/method', component: method },
                { path: '/itemShow/step', component: step },
                { path: '/itemShow/conclusion', component: conclusion },
                { path: '/itemShow/assessment', component: assessment },
                { path: '/itemShow/student', component: student },
                { path: '/itemShow/application', component: application }
            ]
        },
        { path: '/simulation', component: simulation },
        { path: '/simulation/firstperson', component: firstperson, name: 'firstperson' },
        { path: '/simulation/gtp', component: gtp, name: 'gtp' },
        { path: '/simulation/layercut', component: layercut, name: 'layercut' },
        { path: '/simulation/section', component: sec, name: 'sec' },
        { path: '/simulation/zk', component: zk, name: 'zk' },
        {
            path: '/stepAnalysis', component: stepAnalysis,
            children: [
                { path: '/stepAnalysis', redirect: '/stepAnalysis/first' },
                { path: '/stepAnalysis/first', component: first },
                { path: '/stepAnalysis/second', component: second },
                { path: '/stepAnalysis/third', component: third },
                { path: '/stepAnalysis/four', component: four },
                { path: '/stepAnalysis/five', component: five },
                { path: '/stepAnalysis/six', component: six },
                { path: '/stepAnalysis/seven', component: seven },
                { path: '/stepAnalysis/eight', component: eight },
                { path: '/stepAnalysis/nine', component: nine },
                { path: '/stepAnalysis/ten', component: ten },
                { path: '/stepAnalysis/eleven', component: eleven },
                { path: '/stepAnalysis/twelve', component: twelve },
                { path: '/stepAnalysis/thirteen', component: thirteen },
                { path: '/stepAnalysis/fourteen', component: fourteen },
            ]
        },
        { path: '/videoOperation', component: videoOperation },
        { path: '/teachers', component: teachers },
        { path: '/teachers/principal', component: principal },
        { path: '/aboutUs', component: aboutUs, name: 'report' }

    ],
    linkActiveClass: "active"
})

export default router
